<?php
class Chuyen_nganh extends Chuyennganh{
    
    static function getName($id){
        $name = Chuyennganh::model()->findByPk($id);
        return $name->chuyennganh_ten;
    }
    
    static function getCode($id){
        $name = Chuyennganh::model()->findByPk($id);
        return $name->chuyennganh_ma;
    }
}
?>